ip vrf

This command enables a dynamic routing protocol on a VRF.

Syntax

ip vrf <vrf-name> {enable bgp|ospf|pim|rip] {ipv4-alias|ipv6-alias <alias name>}
no ip vrf <vrf-name>

Command

Description

vrf-name

Defines the VRF name (up to 64 bytes).

enable {bgp|ospf|pim|rip}

Enables a specific protocol on the VRF.

ipv4-alias

Defines an IPv4 alias name for the VRF.

ipv6-alias

Defines an IPv6 alias name for the VRF.

Default

NA

Note

Up to 32 VRF’s may be defined.
A VRF which is associated with interfaces cannot be deleted (need first to disassociate the interfaces).

Command Mode

Privileged User

Related Commands

ip route vrf, ip vrf forwarding, show ip vrf

For more information on alias names, see alias.

To view VRFs and IP addresses that are configured with alias names, use the command show network available-app-interface (see show network available-app-interfaces).

Example

Configures a VRF named "XXIP":
(config-data)# ip vrf XXIP
Configures a VRF named "voip" with alias name "voip_v4":
(config-data)# ip vrf voip ipv4-alias voip_v4